package cn.yougou.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (YgCategory)实体类
 *
 * @author 白杰崇
 * @since 2020-12-03 20:34:20
 */
public class YgCategory implements Serializable {
    private static final long serialVersionUID = 440206627212854750L;

    private Integer id;
    /**
     * 类目名称
     */
    private String name;

    private String keywords;
    /**
     * 类目广告语介绍
     */
    private String desc;
    /**
     * 父类目ID   0代表是一级分类；其余是二级分类，二级分类是和一级分类绑定在一起的
     */
    private Integer pid;
    /**
     * 类目图标
     */
    private String iconurl;
    /**
     * 类目图片
     */
    private String picurl;

    private String level;
    /**
     * 排序
     */
    private Integer sortorder;
    /**
     * 创建时间
     */
    private Date addtime;
    /**
     * 更新时间
     */
    private Date updatetime;
    /**
     * 逻辑删除
     */
    private Integer deleted;

    /**
     * 构造方法
     */
    public YgCategory() {
    }

    public YgCategory(String level) {
        this.level = level;
    }

    public YgCategory(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public YgCategory(Integer pid) {
        this.pid = pid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getIconurl() {
        return iconurl;
    }

    public void setIconurl(String iconurl) {
        this.iconurl = iconurl;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getSortorder() {
        return sortorder;
    }

    public void setSortorder(Integer sortorder) {
        this.sortorder = sortorder;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

}